
import { createApp } from 'vue'
import { createPinia } from 'pinia'
import  piniaPlugin  from "pinia-plugin-persistedstate"
import App from './App.vue'
import router from './router'
import {
    Dialog, Button, Tabbar, TabbarItem, NavBar, Swipe, SwipeItem, Sidebar,
    SidebarItem, SwipeCell, Stepper, Uploader, Popup, Toast, Search, Overlay,
    Loading, ShareSheet
} from 'vant';
import "./assets/font/iconfont.css"
import 'vant/es/toast/style';
import 'vant/es/dialog/style';
// pinia 数据持久化
// $cnpm i pinia-plugin-persistedstate -S
let pinia:any = createPinia();
pinia.use(piniaPlugin);
const app = createApp(App)

app.use(createPinia())
app.use(router)
app.use(Button)
app.use(Tabbar)
app.use(TabbarItem)
app.use(NavBar)
app.use(Swipe)
app.use(SwipeItem)
app.use(Sidebar)
app.use(SidebarItem)
app.use(SwipeCell)
app.use(Stepper)
app.use(Uploader)
app.use(Popup)
app.use(Toast)
app.use(Dialog )
app.use(Search )
app.use(Overlay)
app.use(Loading)
app.use(ShareSheet)
app.mount('#app')


